package com.android.qjpmc.data_module;

import com.android.qjpmc.bean.AlarmRecordItemBean;
import com.android.qjpmc.bean.EventRecordItemBean;

import java.util.ArrayList;

public class EventRecordDataModule {
    //报警数据查询
    public class EventDataQuery
    {
        public String m_start_time;
        public String m_end_time;
        public int m_station_id;//站id
        public int m_device_id;
        public String station_name;
        public String device_name;
        public int new_query;
        public ArrayList<Integer> analog_list = new ArrayList<Integer>();
        public ArrayList<EventRecordItemBean> event_data_array = new ArrayList<EventRecordItemBean>();

        EventDataQuery()
        {
            EventRecordItemBean bean = null;
            for (int idx = 0; idx < 100; idx++)
            {
                bean = new EventRecordItemBean();
                bean.m_id = idx;
                bean.m_time = "2022-1-1 19:54:45 223";
                bean.m_name = "变电站1.设备1.断路器位置";
                bean.m_fault_value = "分位";
                bean.SetValue(1);
                event_data_array.add(bean);
            };
        }
        public ArrayList<EventRecordItemBean> GetAlarmRecoordDataArray()
        {
            if (event_data_array == null)
            {
                return null;
            }
            return event_data_array;
        }

    };
    public EventDataQuery m_event_data_query = new EventDataQuery();
    ArrayList<EventRecordItemBean> GetEventRecordDataArray()
    {
        if (m_event_data_query == null)
        {
            return null;
        }
        return m_event_data_query.GetAlarmRecoordDataArray();
    }


}
